package com.yuandian.middle.platform.contoller;

import com.yuandian.api.middle_platform.po.OrgAbilityParam;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.middle.platform.service.IAbilityServerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：能力服务查询controller
 * @Author tianlr
 * @Date 2023/5/18 10:11
 */
@Api(value = "abilityServer", tags = "能力服务查询接口")
@RestController
@RequestMapping("/modules/abilityServer")
public class AbilityServerController {

    @Autowired
    private IAbilityServerService abilityServerService;

    /**
     * 根据条件（单位单位、能力编码）查询能力服务
     * @return
     */
    @PostMapping("/queryAbilityServer")
    @ApiOperation(value = "根据条件（单位单位、能力编码）查询能力服务", notes = "根据条件（单位单位、能力编码）查询能力服务")
    public R queryAbilityServer(@RequestBody OrgAbilityParam param) {
        return abilityServerService.selectAbilityServer(param);
    }
}
